
package gal.game.core.layers
{
	import flash.display.Sprite;
	import flash.utils.Dictionary;
	
	import gal.game.module.gal.Role;
	
	/**
	 * @author 缺硒
	 */
	public class RoleLayer extends Sprite
	{
		private var _roleDic:Dictionary;
		
		// 构造函数
		public function RoleLayer()
		{
			_roleDic = new Dictionary();
		}
		
		public function showRole(rid:String, px:Number):void
		{
			var role:Role = new Role(rid);
			role.x = px;
			
			_roleDic[rid] = role;
			addChild(role);
		}
		//
	}
}